home *** CD-ROM | disk | FTP | other *** search
/ Developer CD Series 1996 January: Mac OS SDK / Dev.CD Jan 96 SDK / Dev.CD Jan 96 SDK1.toast / Development Kits (Disc 1) / OpenTransport / Open Transport 1.0.5b4 / Open Transport SDK / Open Tpt Module Developer / Includes / strlog.h < prev    next >
Encoding:
C/C++ Source or Header  |  1995-06-24  |  1000 b   |  53 lines  |  [TEXT/MPS ]

  1. /** Copyright (c) 1993  Mentat Inc.
  2.  ** strlog.h 4.3, last change 15 Apr 1994
  3.  **/
  4.  
  5. #ifndef _STRLOG_
  6. #define    _STRLOG_
  7.  
  8.  
  9. struct log_ctl {
  10.     short    mid;
  11.     short    sid;
  12.     char    level;
  13.     short    flags;
  14.     long    ltime;
  15.     long    ttime;
  16.     int    seq_no;
  17. };
  18.  
  19. #define    SL_FATAL    0x1    /* Fatal error */
  20. #define    SL_NOTIFY    0x2    /* Notify the system administrator */
  21. #define    SL_ERROR    0x4    /* Pass message to error logger */
  22. #define    SL_TRACE    0x8    /* Pass message to tracer */
  23. #define    SL_CONSOLE    0x10    /* Print the message on the console */
  24. #define    SL_WARN        0x20    /* Warning */
  25. #define    SL_NOTE        0x40    /* Notice this message */
  26.  
  27. struct trace_ids {
  28.     short    ti_mid;
  29.     short    ti_sid;
  30.     char    ti_level;
  31. };
  32.  
  33. #ifndef MIOC_CMD
  34. #include <miioccom.h>
  35. #endif    /* MIOC_CMD */
  36.  
  37. #define    I_TRCLOG    MIOC_CMD(MIOC_STRLOG, 1)
  38. #define    I_ERRLOG    MIOC_CMD(MIOC_STRLOG, 2)
  39.  
  40. #define    LOGMSGSZ    128
  41.  
  42. #ifdef __cplusplus
  43. extern "C" {
  44. #endif
  45.  
  46. extern    int    strlog( int mid, int sid, int level, unsigned int flags, char* fmt, ...);
  47.  
  48. #ifdef __cplusplus
  49. };
  50. #endif
  51.  
  52. #endif    /* _STRLOG_ */
  53.